<div class="tableform">
    <div class="widgetconfig">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
            <tbody>
            	<tr>
                    <th>广告尺寸：</th>
                    <td>宽&nbsp;<input type="text" name="ad_pic_width" value="<{$setting.ad_pic_width}>" class="inputstyle" />&nbsp;px&nbsp;&nbsp;高&nbsp;<input type="text" name="ad_pic_height" value="<{$setting.ad_pic_height}>" class="inputstyle">&nbsp;px&nbsp;&nbsp;&nbsp;&nbsp;启用外层div：<input type="checkbox" name="showtag" value="1" <{if $setting.showtag=="1"}> checked="checked"<{/if}> />&nbsp;&nbsp;&nbsp;&nbsp;样式名：<input type="text" name="stylename" value="<{$setting.stylename}>" class="inputstyle" />&nbsp;(需启用外层div)</td>
                </tr>
                <tr>
                    <th>图片：</th>
                    <td><input name='ad_pic' class="inputstyle" id="ad_pic" value="<{$setting.ad_pic}>" style="width:60%" />&nbsp;&nbsp;<input type="button" value="上传图片" class="uploadbtn" onclick="addPic()" />&nbsp;&nbsp;启用延时加载机制:<input type="checkbox" name="lazyload" value="1"<{if $setting.lazyload=="1"}> checked="checked"<{/if}> />
                    </td>
                </tr>
                <tr>
                    <th>图片描述：</th>
                    <td><input type="text" name="ad_pic_txt" value="<{$setting.ad_pic_txt}>" class="inputstyle" style="width:60%">&nbsp;&nbsp;在图片下显示描述：<input type="checkbox" name="showtxt" value="1"<{if $setting.showtxt=="1"}> checked="checked"<{/if}> /></td>
                </tr>
                <tr>
                    <th>图片链接：</th>
                    <td><input type="text" name="ad_pic_link" value="<{$setting.ad_pic_link}>" class="inputstyle" style="width:70%" />&nbsp;&nbsp;当前窗口打开：<input type="checkbox" name="target" value="1"<{if $setting.target=="1"}> checked="checked"<{/if}> /></td>
                </tr>
        </tbody>
       </table>
    </div>
</div>
<script>
function addPic(){
	var url='index.php?app=desktop&act=alertpages&goto='+encodeURIComponent("index.php?app=image&ctl=admin_manage&act=image_broswer&type=big");
	Ex_Loader('modedialog',function(){
		return new imgDialog(url,{onCallback:function(image_id,image_src){
				$('ad_pic').value=image_src;
		}})	;
	});
}
</script>